package metu.tespit.session.course;

import java.util.Arrays;

import metu.tespit.entity.course.Announcement;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;

/**
 
 * @created May 23, 2012
 */
@Name("announcementList")
public class AnnouncementList extends EntityQuery<Announcement>{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7754306281557418451L;
	private static final String[] RESTRICTIONS = {
		"course.semester = #{courseList.sessionScopeBean.activeSemester}",
		};
	
	public AnnouncementList()
	{
		setEjbql("select course from Course course");
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
	}

}
